package com.tjetc.view;

import java.util.Scanner;

/**
 * 管理员界面
 */
public class AdminView {

    private static Scanner sc=new Scanner(System.in);
    public void start() {
        while (true){
            System.out.println("🥰🥰~~~~~~管理员页面~~~~~~🥰🥰");
            System.out.println("1.客户管理界面");
            System.out.println("2.车辆管理界面");
            System.out.println("3.订单管理界面");
            System.out.println("0.返回上一级");
            System.out.println("请输入你的选择");
            int i=sc.nextInt();
            switch (i){
                case 1:
                    CustomerManageView customerManageView=new CustomerManageView();
                    customerManageView.start();
                    break;
                case 2:
                    VehicleManageView vehicleManageView=new VehicleManageView();
                    vehicleManageView.start();
                    break;
                case 3:
                    OrderApprovalManageView orderApprovalManageView=new OrderApprovalManageView();
                    orderApprovalManageView.start();
                    break;
                case 0:
                    return;
                default:
                    System.out.println("输入错误");

            }
        }
    }
}
